//
//  SHTipButton.swift
//  shaohuo
//
//  Created by vicoo on 16/8/5.
//  Copyright © 2016年 lchenc3. All rights reserved.
//

import UIKit

class SHTipButton: UIButton {

    /*
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
    }
    */
    
    var tipView: UIView?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        tipView = UIView(frame: CGRect(x: frame.size.width-5, y: 0, width: 5, height: 5))
        addSubview(tipView!)
        tipView!.backgroundColor = UIColor(hexString: "F95E67")
        tipView?.layer.cornerRadius = 2.5
        tipView?.isHidden = true
        
    }
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    
}
